﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace Zj.DDDSample.Domain.Events
{
    /// <summary>
    /// Event store interface.
    /// </summary>
    public interface IEventStore
    {
        void Save(IEnumerable<IEvent> events);

        Task SaveAsync(IEnumerable<IEvent> events,CancellationToken cancellationToken=default(CancellationToken));
    }
}
